package org.smr.ministore.common.app;

import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;


@EnableFeignClients
@EnableDiscoveryClient
@EnableAutoConfiguration
@ComponentScan("org.smr")
@SpringBootApplication
public class CommonAllServiceApplication {

    public static void main(String[] args) {
        new SpringApplicationBuilder(CommonAllServiceApplication.class).run(args);
    }

    public int getExitCode() {
        System.out.println(getClass().getName() + " is exit!");
        return 0;
    }
}
